package cn.gov.nanhai.commonssys.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author ${董荣盛}
 * @创建时间 2021/4/17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "collect_plan")
@ApiModel(value="创建任务对象")
public class CollectPlan {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value="主键编号")
    private Long planId;

    @ApiModelProperty(value = "计划编号")
    private String planCode;

    @ApiModelProperty(value = "开始时间")
    private Date planStartTime;

    @ApiModelProperty(value = "结束时间")
    private Date planEndTime;

    @ApiModelProperty(value = "计划名称")
    private String planName;

    @ApiModelProperty(value = "计划状态")
    private int planStatus;

    @ApiModelProperty(value="采集要求",required = true)
    private String collectRequested;

    @ApiModelProperty(value = "创建时间")
    private Date createDate;

    @ApiModelProperty(value = "更新时间")
    private Date updateDate;

    @ApiModelProperty(value = "创建人")
    private String createPerson;

    @ApiModelProperty(value = "更新人")
    private String updatePerson;



    @Override
    public String toString() {
        return "CollectPlan{" +
                "planId=" + planId +
                ", planCode='" + planCode + '\'' +
                ", planStartTime=" + planStartTime +
                ", planEndTime=" + planEndTime +
                ", planName='" + planName + '\'' +
                ", planStatus=" + planStatus +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                ", createPerson='" + createPerson + '\'' +
                '}';
    }
}
